home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global offs, offs2, piecelist, totalpiece, totalstart, numCorrect, emtol
- set lH to the locH of sprite the clickOn
- set lV to the locV of sprite the clickOn
- unhighlight1(getAt(piecelist, the clickOn - offs))
- if iscorrect(getAt(piecelist, the clickOn - offs), lH, lV) then
- finish(getAt(piecelist, the clickOn - offs))
- else
- moveBackDown(getAt(piecelist, the clickOn - offs))
- end if
- unhighlight2(getAt(piecelist, the clickOn - offs))
- end
-
- on mouseDown
- global offs
- highlight(getAt(piecelist, the clickOn - offs))
- end
-